using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._TINDataset._Conversion
{
    /// <summary>
    /// <para>TIN Polygon Tag</para>
    /// <para>Creates polygon features using tag values in a triangulated irregular network (TIN) dataset.</para>
    /// <para>使用三角不规则网络 （TIN） 数据集中的标注值创建面要素。</para>
    /// </summary>    
    [DisplayName("TIN Polygon Tag")]
    public class TinPolygonTag : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public TinPolygonTag()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_tin">
        /// <para>Input TIN</para>
        /// <para>The TIN dataset to process.</para>
        /// <para>要处理的 TIN 数据集。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// </param>
        public TinPolygonTag(object _in_tin, object _out_feature_class)
        {
            this._in_tin = _in_tin;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "TIN Polygon Tag";

        public override string CallName => "3d.TinPolygonTag";

        public override List<string> AcceptEnvironments => ["XYDomain", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "autoCommit", "configKeyword", "extent", "geographicTransformations", "outputCoordinateSystem", "workspace"];

        public override object[] ParameterInfo => [_in_tin, _out_feature_class, _tag_field];

        /// <summary>
        /// <para>Input TIN</para>
        /// <para>The TIN dataset to process.</para>
        /// <para>要处理的 TIN 数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input TIN")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_tin { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Tag Value Field</para>
        /// <para>The name of the field storing the tag attribute in the output feature class. The default field name is Tag_Value.</para>
        /// <para>在输出要素类中存储标签属性的字段的名称。默认字段名称为 Tag_Value。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Tag Value Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _tag_field { get; set; } = null;


        public TinPolygonTag SetEnv(object XYDomain = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, int? autoCommit = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, autoCommit: autoCommit, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, workspace: workspace);
            return this;
        }

    }

}